﻿using Abp.Authorization.Users;
using AbpProjectTemplate.Web.Authentication.External;
using System.ComponentModel.DataAnnotations;

namespace AbpProjectTemplate.Web.Models.TokenAuth
{
    public class ExternalAuthenticateModel
    {
        /// <summary>
        /// 登录平台
        /// </summary>
        public ExternalProvider Provider { get; set; }
        /// <summary>
        /// 登录凭据
        /// 微信小程序：{"LoginCode":"","NickName":"","HeadImage":""}
        /// 支付宝小程序：{"AuthCode":"","NickName":"","HeadImage":""}
        /// </summary>
        [Required]
        public string AccessCode { get; set; }
    }

    public class MemberAuthenticateModel
    {
        [Required]
        public string OpenId { get; set; }
    }
}


